Intercepts the POST /api/login request and assigns an alias.
Submits a login form.
Waits for the request and checks the request body to verify it includes the right username.